/**
 * GWUser Service层
 */
app.factory('gwUserService', ['$resource', function ($resource) {
    return $resource('/GMS/GWUser/:id/:action', {
            id: '@id',
            action: '@action'
        }, {
            findGWUserByName: {
                method: 'GET',
                isArray: false
            },
            initSendQueueList: {
                method: 'GET',
                isArray: false
            },
            initRecvQueueList: {
                method: 'GET',
                isArray: false
            },
            checkGWUserName: {
                method: 'GET',
                isArray: false
            },
            checkGWUserId: {
                method: 'GET',
                isArray: false
            },
            updateUser: {
                method: 'PUT',
                isArray: false
            },
            online: {
                method: 'POST',
                isArray: false
            },
            offline: {
                method: 'POST',
                isArray: false
            },
            updateUserList: {
                method: 'GET',
                isArray: false
            }
        }
    );
}]);

